home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue57 / Construc / Project1_TLB.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2000-04-02  |  5.8 KB  |  120 lines

  1. unit Project1_TLB;
  2.  
  3. // ************************************************************************ //
  4. // WARNING                                                                    
  5. // -------                                                                    
  6. // The types declared in this file were generated from data read from a       
  7. // Type Library. If this type library is explicitly or indirectly (via        
  8. // another type library referring to this type library) re-imported, or the   
  9. // 'Refresh' command of the Type Library Editor activated while editing the   
  10. // Type Library, the contents of this file will be regenerated and all        
  11. // manual modifications will be lost.                                         
  12. // ************************************************************************ //
  13.  
  14. // PASTLWTR : $Revision:   1.88.1.0.1.0  $
  15. // File generated on 2000/04/02 21:55:48 from Type Library described below.
  16.  
  17. // ************************************************************************ //
  18. // Type Lib: D:\d5clinic\04\midas\Project1.tlb (1)
  19. // IID\LCID: {125B8ED1-06E9-11D4-BF46-00104BF89DAD}\0
  20. // Helpfile: 
  21. // DepndLst: 
  22. //   (1) v2.0 stdole, (C:\WINNT\System32\STDOLE2.TLB)
  23. //   (2) v4.0 StdVCL, (C:\WINNT\System32\STDVCL40.DLL)
  24. //   (3) v1.0 Midas, (C:\WINNT\System32\midas.dll)
  25. // ************************************************************************ //
  26. {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
  27. interface
  28.  
  29. uses Windows, ActiveX, Classes, Graphics, OleServer, OleCtrls, StdVCL, 
  30.   MIDAS;
  31.  
  32. // *********************************************************************//
  33. // GUIDS declared in the TypeLibrary. Following prefixes are used:        
  34. //   Type Libraries     : LIBID_xxxx                                      
  35. //   CoClasses          : CLASS_xxxx                                      
  36. //   DISPInterfaces     : DIID_xxxx                                       
  37. //   Non-DISP interfaces: IID_xxxx                                        
  38. // *********************************************************************//
  39. const
  40.   // TypeLibrary Major and minor versions
  41.   Project1MajorVersion = 1;
  42.   Project1MinorVersion = 0;
  43.  
  44.   LIBID_Project1: TGUID = '{125B8ED1-06E9-11D4-BF46-00104BF89DAD}';
  45.  
  46.   IID_ITDM57: TGUID = '{125B8ED2-06E9-11D4-BF46-00104BF89DAD}';
  47.   CLASS_TDM57: TGUID = '{125B8ED4-06E9-11D4-BF46-00104BF89DAD}';
  48. type
  49.  
  50. // *********************************************************************//
  51. // Forward declaration of types defined in TypeLibrary                    
  52. // *********************************************************************//
  53.   ITDM57 = interface;
  54.   ITDM57Disp = dispinterface;
  55.  
  56. // *********************************************************************//
  57. // Declaration of CoClasses defined in Type Library                       
  58. // (NOTE: Here we map each CoClass to its Default Interface)              
  59. // *********************************************************************//
  60.   TDM57 = ITDM57;
  61.  
  62.  
  63. // *********************************************************************//
  64. // Interface: ITDM57
  65. // Flags:     (4416) Dual OleAutomation Dispatchable
  66. // GUID:      {125B8ED2-06E9-11D4-BF46-00104BF89DAD}
  67. // *********************************************************************//
  68.   ITDM57 = interface(IAppServer)
  69.     ['{125B8ED2-06E9-11D4-BF46-00104BF89DAD}']
  70.   end;
  71.  
  72. // *********************************************************************//
  73. // DispIntf:  ITDM57Disp
  74. // Flags:     (4416) Dual OleAutomation Dispatchable
  75. // GUID:      {125B8ED2-06E9-11D4-BF46-00104BF89DAD}
  76. // *********************************************************************//
  77.   ITDM57Disp = dispinterface
  78.     ['{125B8ED2-06E9-11D4-BF46-00104BF89DAD}']
  79.     function  AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; 
  80.                               MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
  81.     function  AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer; 
  82.                             Options: Integer; const CommandText: WideString; 
  83.                             var Params: OleVariant; var OwnerData: OleVariant): OleVariant; dispid 20000001;
  84.     function  AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
  85.     function  AS_GetProviderNames: OleVariant; dispid 20000003;
  86.     function  AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
  87.     function  AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; 
  88.                             var OwnerData: OleVariant): OleVariant; dispid 20000005;
  89.     procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString; 
  90.                          var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
  91.   end;
  92.  
  93. // *********************************************************************//
  94. // The Class CoTDM57 provides a Create and CreateRemote method to          
  95. // create instances of the default interface ITDM57 exposed by              
  96. // the CoClass TDM57. The functions are intended to be used by             
  97. // clients wishing to automate the CoClass objects exposed by the         
  98. // server of this typelibrary.                                            
  99. // *********************************************************************//
  100.   CoTDM57 = class
  101.     class function Create: ITDM57;
  102.     class function CreateRemote(const MachineName: string): ITDM57;
  103.   end;
  104.  
  105. implementation
  106.  
  107. uses ComObj;
  108.  
  109. class function CoTDM57.Create: ITDM57;
  110. begin
  111.   Result := CreateComObject(CLASS_TDM57) as ITDM57;
  112. end;
  113.  
  114. class function CoTDM57.CreateRemote(const MachineName: string): ITDM57;
  115. begin
  116.   Result := CreateRemoteComObject(MachineName, CLASS_TDM57) as ITDM57;
  117. end;
  118.  
  119. end.
  120.